/**
 * Created by ryansecreat on 2017/12/25.
 */
const mm = require('egg-mock');
const path=require("path");
console.log(path.resolve(__dirname,"../"));
app = mm.app({
    baseDir:path.resolve(__dirname,"../")
});

/*let b=[5,7,9];
b.splice(1,0,8);
console.log(b);*/
let test=async()=>{
    try
    {

        await app.ready();
        let ctx=app.mockContext();
        let name= ctx.service.user.getName();
        ctx.logger.info(name);
    }
    catch(e)
    {
        console.error(e);
    }
}
test();